package com.blue.fish.tiny.lexer;

/**
 * @author QingFan
 * @version 1.0.0
 * @date 2023年01月09日 20:49
 */
public class LexicalException extends Exception{

	private static final long serialVersionUID = 3328102629037202231L;

	private String msg;

	public LexicalException(char c) {
		msg = String.format("Unexpected character %c", c);
	}

	public LexicalException(String _msg){
		msg = _msg;
	}


	@Override
	public String getMessage() {
		return msg;
	}

}
